package xjtu.sad.zbsj.task.publisher.service;

import org.springframework.web.multipart.MultipartFile;
import xjtu.sad.zbsj.task.publisher.Utils.ResultParam;
import xjtu.sad.zbsj.task.publisher.params.DrawListRequestParams;
import xjtu.sad.zbsj.task.publisher.params.TaskListRequestParams;

public interface TaskService {
    //添加
    ResultParam<Object> addTask(MultipartFile[] files, String publisher, String type,
                                String templateId, String taskTitle, String taskRequire,
                                String taskLimitTime, String taskMarkCount, String taskMaxDistribution,
                                String taskExceptionTime, String taskDesc, String taskAward);

    // 删除
    ResultParam<Object> delTask(String taskId);

    // 列表
    ResultParam<Object> taskList(TaskListRequestParams keyword, Integer userId);

    ResultParam<Object> drawList(DrawListRequestParams taskId);

    ResultParam<Object> cancel(String drawId);

    ResultParam<Object> end(String taskId);

    void updateDrawSample(Integer drawId, Integer sample);
}
